import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false;

import '@/common/iconfont.js';//  引入iconfont
import '@/components/vant';   //   vant

import mixin from '@/common/mixins'// 全局混入
Vue.mixin(mixin)
Vue.prototype.$bus = new Vue();  //  数据中转


import init from '@/common/init';//  登录态维护
const app =   new Vue({
  router,
  store,
  render: h => h(App)
})

init().then(res=>{
  app.$mount('#app')
})






